package com.devicetracker;

public class User {
	
	private static User user;
	
	private String email;
	
	private String password;
	
	private String token;

	/**
	 * Private Constructor to avoid instantiation.
	 */
	private User() {
		// Empty constructor.
	}

	/**
	 * Static method for singleton design pattern. Every application should have
	 * only one user object.
	 * 
	 * @return User object.
	 */
	public static User getUser() {
		if (user == null) {
			user = new User();
		}
		return user;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
}
